<template >
    <div>
        <van-nav-bar left-arrow>
            <template #title>
                    <span style="color:#fff">{{title}}</span>
            </template>
            <template #left>
                    <van-icon :name="icon" color="#fff" size="18" @click="$router.go(-1)"></van-icon>
            </template>
        </van-nav-bar>
    </div>
</template>
<script>
export default {
    props:['title','icon'],

}
</script>
<style lang="scss" scoped>
    .van-nav-bar{
        background: #319;
    }
</style>